<template>
  <div id="boat_filter" class="boat_filter">
    <div class="book-trip" data-role="home">
      <div class="travel-booking-panel">
        <form class="trip-form" action="#" method="POST">
          <div class="error-message-container"></div>
          <div class="book-trip-basic-info">
            <div class="destination">
              <div class="search-field-group">
                <Cascader :data="destList" v-model="destValue" filterable="true" size="large" placeholder="停靠地"></Cascader>
              </div>
            </div>

            <div class="depart-date">
              <div class="search-field-group">
                <Date-picker type="datetimerange" placeholder="预订日期" format="yyyy-MM-dd"></Date-picker>
              </div>
            </div>

            <div class="trip-passengers-wrapper">
              <div class="search-field-group">

                <Select v-model="capacityValue" clearable placeholder="载客数">
                  <Option v-for="item in capacityList" :value="item.value" :key="item">{{ item.label }}</Option>
                </Select>
              </div>
            </div>
          </div>

          <div class="book-trip-basic-info">
            <div class="rent-type">
              <div class="search-field-group">
                <Select v-model="brand" clearable placeholder="游艇品牌">
                  <Option v-for="item in brandList" :value="item.value" :key="item">{{ item.label }}</Option>
                </Select>
              </div>
            </div>

            <div class="boat-size">
              <div class="search-field-group">
                <Select v-model="boatType" clearable placeholder="船型/尺寸">
                  <Option v-for="item in boatTypeList" :value="item.value" :key="item">{{ item.label }}</Option>
                </Select>
              </div>
            </div>

            <div class="trip-ent-items">
              <div class="search-field-group">
                <Select v-model="servicePackage" clearable placeholder="娱乐服务">
                  <Option v-for="item in servicePackageList" :value="item.value" :key="item">{{ item.label }}</Option>
                </Select>
              </div>
            </div>
            <button type="submit" class="button-submit">
              <span class="button-title-large">搜索</span>
              <i class="fa fa-angle-right" aria-hidden="true" style="float:right; padding-top:5px"></i>
            </button>
          </div>
        </form>

      </div>
    </div>
  </div>
</template>

<script>
  export default {
    components: {},
    name: 'boat_filter',
    data () {
      return {
        destValue: [],
        destList: [
          {
            value: 'SouthAmerican',
            label: '南美洲',
            children: [
              {
                value: 'gugong',
                label: '巴哈马'
              },
              {
                value: 'tiantan',
                label: '古巴'
              },
              {
                value: 'wangfujing',
                label: '厄瓜多尔'
              },
              {
                value: 'wangfujing',
                label: '墨西哥'
              },
              {
                value: 'wangfujing',
                label: '英属维尔'
              }
            ]
          },
          {
            value: 'NorthAmerican',
            label: '北美洲',
            children: [],
            loading: false
          },
          {
            value: 'Asia',
            label: '亚洲',
            children: [
              {
                value: 'nanjing',
                label: '中国',
                children: [
                  {
                    value: 'qingdao',
                    label: '青岛'
                  },
                  {
                    value: 'weihai',
                    label: '威海'
                  },
                  {
                    value: 'sanya',
                    label: '三亚'
                  },
                  {
                    value: 'dalian',
                    label: '大连'
                  },
                  {
                    value: 'shanghai',
                    label: '上海'
                  }, {
                    value: 'suzhou',
                    label: '苏州'
                  }, {
                    value: 'wuxi',
                    label: '无锡'
                  }, {
                    value: 'changzhou',
                    label: '常州'
                  }, {
                    value: 'nanjing',
                    label: '南京'
                  }, {
                    value: 'pinghu',
                    label: '平湖'
                  }, {
                    value: 'huzhou',
                    label: '湖州'
                  }, {
                    value: 'hangzhou',
                    label: '杭州'
                  }, {
                    value: 'ningbo',
                    label: '宁波'
                  }, {
                    value: 'shengsi',
                    label: '嵊泗'
                  }, {
                    value: 'fuzimiao',
                    label: '厦门'
                  }, {
                    value: 'guangzhou',
                    label: '广州'
                  }, {
                    value: 'shenzhen',
                    label: '深圳'
                  }, {
                    value: 'zhuhai',
                    label: '珠海'
                  }, {
                    value: 'beihai',
                    label: '北海'
                  }
                ] },
              {
                value: 'Thailand',
                label: '泰国',
                children: [
                  {
                    value: 'Phuket',
                    label: '芭提'
                  },
                  {
                    value: 'Phuket',
                    label: '普吉岛'
                  },
                  {
                    value: 'Sumy',
                    label: '苏梅'
                  }
                ]
              },
              {
                value: 'Hongkang',
                label: '香港'
              },
              {
                value: 'Taiwan',
                label: '台湾'
              },
              {
                value: 'Philippines',
                label: '菲律宾'
              },
              {
                value: 'Indonesia',
                label: '印度尼西亚'
              },
              {
                value: 'Malaysia',
                label: '马来西亚'
              },
              {
                value: 'Vietnam',
                label: '越南'
              },
              {
                value: 'Korea',
                label: '韩国'
              },
              {
                value: 'Japan',
                label: '日本'
              }
            ]
          },
          {
            value: 'Oceanica',
            label: '澳洲',
            children: [
              {
                value: 'gugong',
                label: '黄金海岸'
              },
              {
                value: 'tiantan',
                label: '悉尼'
              },
              {
                value: 'wangfujing',
                label: '墨尔本'
              },
              {
                value: 'wangfujing',
                label: '法属波利'
              },
              {
                value: 'wangfujing',
                label: '珀斯'
              }
            ]
          },
          {
            value: 'Africa',
            label: '非洲',
            children: [],
            loading: false
          },
          {
            value: 'Europe',
            label: '欧洲',
            children: [],
            loading: false
          }
        ],
        boatTypeList: [
          {
            value: 'sailboat',
            label: '帆船'
          },
          {
            value: 'catamaran',
            label: '双体船'
          },
          {
            value: 'motorboat',
            label: '摩托艇'
          },
          {
            value: 'gulet',
            label: '双桅船'
          }
        ],
        capacityValue: '',
        capacityList: [
          {
            value: '1',
            label: '4人以下'
          },
          {
            value: '2',
            label: '6-8人'
          },
          {
            value: '3',
            label: '9-12人'
          },
          {
            value: '4',
            label: '13-16人'
          },
          {
            value: '5',
            label: '17人以上'
          }
        ],
        modelBoatType: '',
        priceRange: [20, 50],
        cabinNumRange: [1, 10],
        boatSizeRange: [6, 24],
        brandList: [
          {
            value: 'Lagoon',
            label: 'Lagoon'
          },
          {
            value: 'Bavaria',
            label: 'Bavaria'
          },
          {
            value: 'Azimut',
            label: 'Azimut'
          }
        ],
        brand: '',
        boatType: '',
        servicePackageList: [
          {
            value: 'diving',
            label: '潜水'
          },
          {
            value: 'fishing',
            label: '钓鱼'
          },
          {
            value: 'skipping',
            label: '划水'
          }
        ],
        servicePackage: ''
      }
    },
    methods: {}
  }
</script>
<style scoped>
  .boat_filter {
    color: rgba(0, 0, 0, 0.87);
    min-height: 100px;
  }

  .book-trip::before, .book-trip::after {
    content: " ";
    display: table;
  }

  .book-trip::after {
    clear: both;
  }

  .book-trip {
    margin: 0 auto;
    padding: 1.125rem 0 2rem;
    width: 80%;
  }

  .book-trip.travel-only .book-trip-basic-info::before, .book-trip.travel-only .book-trip-basic-info::after {
    content: " ";
    display: table;
  }

  .book-trip .book-trip-basic-info::before, .book-trip .book-trip-basic-info::after {
    content: " ";
    display: table;
  }

  .book-trip .book-trip-extrainfo::before, .book-trip .book-trip-extrainfo::after {
    content: " ";
    display: table;
  }

  .book-trip .book-trip-basic-info {
    float: left;
    width: 100%;
    margin-top: 10px;
  }

  ul > li::before {
    color: #8e8573;
    font-size: 1.385em;
    left: 0;
    position: absolute;
    top: -4px;
  }

  .book-trip .book-trip-extras li.trip-redeem, .book-trip .book-trip-extras-medium-up li.trip-redeem {
    border-left: 1px solid #d7d7d7;
    padding: 0 1.25rem;
  }

  .book-trip .book-trip-extras li, .book-trip .book-trip-extras-medium-up li {
    display: inline-block;
    padding: 0 1.125rem 0 0;
  }

  .book-trip .book-trip-basic-info .destination, .book-trip .book-trip-basic-info .depart-date, .book-trip .book-trip-basic-info .trip-passengers-wrapper {
    float: left;
    width: 33%;
  }

  .book-trip .book-trip-basic-info .depart-date {
    float: left;
    width: 33%;
    padding-right: 3px;
    padding-left: 3px;
  }

  .book-trip .destination, .book-trip .trip-passengers-wrapper, .book-trip .trip-package-wrapper {
    padding-right: 2px;
    box-sizing: border-box;
    float: left;
    min-width: 13em;
    position: relative;
    width: 30%;
    padding-left: 2px;
  }

  .book-trip .book-trip-basic-info .rent-type, .book-trip .book-trip-basic-info .boat-size {
    float: left;
    width: 33%;
  }

  .book-trip .book-trip-basic-info .trip-ent-items {
    float: left;
    width: 10%;
  }

  .book-trip .rent-type, .book-trip .boat-size, .book-trip .trip-ent-items {
    padding-right: 2px;
    box-sizing: border-box;
    float: left;
    min-width: 13em;
    position: relative;
    width: 30%;
    padding-left: 1px;
  }

  .book-trip .book-trip-basic-info .search-field-group {
    height: 3.58em;
    margin: 0;
    position: relative;
  }

  .book-trip form .book-trip-basic-info .search-field-group .field-label .input-filled, .book-trip form .book-trip-extrainfo .search-field-group .field-label.input-filled {
    clip: inherit;
    color: #767676;
    cursor: inherit;
    font-size: 0.6857rem;
    height: auto;
    left: 0.875rem;
    overflow: hidden;
    position: absolute;
    text-transform: uppercase;
    top: 0.5rem;
    width: auto;
  }

  .book-trip form .book-trip-basic-info .search-field-group .field-label, .book-trip form .hotel-destination .search-field-group .field-label, .book-trip form .dates-picker-wrapper .search-field-group .field-label, .book-trip form .package-rooms-wrapper .search-field-group .field-label, .book-trip form .trip-package-wrapper .search-field-group .field-label {
    border: 0 none;
    clip: rect(0px, 0px, 0px, 0px);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }

  .book-trip form .book-trip-basic-info .search-field-group .field-input.input-filled, .book-trip form .hotel-destination .search-field-group .field-input.input-filled, .book-trip form .dates-picker-wrapper .search-field-group .field-input.input-filled, .book-trip form .package-rooms-wrapper .search-field-group .field-input.input-filled, .book-trip form .trip-package-wrapper .search-field-group .field-input.input-filled, .book-trip form .book-trip-basic-info .search-field-group .field-button.input-filled, .book-trip form .hotel-destination .search-field-group .field-button.input-filled, .book-trip form .dates-picker-wrapper .search-field-group .field-button.input-filled, .book-trip form .package-rooms-wrapper .search-field-group .field-button.input-filled, .book-trip form .trip-package-wrapper .search-field-group .field-button.input-filled {
    padding-bottom: 0.5em;
    padding-top: 1.6em;
    box-sizing: border-box;
    float: left;
    min-width: 13em;
    position: relative;
    width: 100%;
  }

  .book-trip .book-trip-basic-info .search-field-input {
    font-size: 0.875rem;
    height: 3.58em;
    max-height: 3.58em;
    padding-left: 0.857em;
    color: #4c4c4c;
    text-align: left;
  }

  .search-field-group .search-field-input, .ivu-input {
    -moz-appearance: none;
    -moz-border-bottom-colors: none;
    -moz-border-left-colors: none;
    -moz-border-right-colors: none;
    -moz-border-top-colors: none;
    background: #fff none repeat scroll 0 0;
    border-color: #fff #fff #c6c2c1;
    border-image: none;
    border-radius: 0;
    border-style: solid;
    border-width: 1px;
    display: block;
    height: 50px;
    line-height: 1.3;
    margin: 0;
    padding: 1em 1em .7em 2em;
    width: 100%;
  }

  .search-field-group .ivu-select-selection {
    -moz-user-select: none;
    background-color: #fff;
    border: 1px solid #dddee1;
    border-radius: 0 !important;
    box-sizing: border-box;
    cursor: pointer;
    display: block;
    outline: 0 none;
    position: relative;
    height: 50px !important;
    transition: all 0.2s ease-in-out 0s;
  }
  .ivu-cascader-menu {!important
    border-right: 1px solid #e9eaec;
    display: inline-block;
    height: auto;
    list-style: outside none none;
    margin: 0;
    min-width: 100px;
    overflow: auto;
    padding: 5px 0;
    vertical-align: top;
  }
  .input-filled::-webkit-input-placeholder, .ivu-input::-webkit-input-placeholder, .search-field-input::-webkit-input-placeholder {
    color: #767676;
    font-size: 0.6857rem;
  }

  .input-filled:-moz-placeholder, .ivu-input:-moz-placeholder, .search-field-input:-moz-placeholder { /* Firefox 18- */
    color: #767676;
    font-size: 0.6857rem;
  }

  .input-filled::-moz-placeholder, .ivu-input::-moz-placeholder, .search-field-input::-moz-placeholder { /* Firefox 19+ */
    color: #767676;
    font-size: 0.6857rem;
  }

  .input-filled:-ms-input-placeholder, .ivu-input:-ms-input-placeholder, .search-field-input:-ms-input-placeholder {
    color: #767676;
    font-size: 0.6857rem;
  }

  input::-moz-placeholder {
    color: #767676;
    opacity: 1;
  }

  .travel-booking-panel .trip-form .dates-picker-wrapper {
    width: 54%;
  }

  .splited-date-picker {
    float: left;
    margin-bottom: 0.5em;
    overflow: visible;
    padding-right: 0;
    position: relative;
  }

  .travel-booking-panel .trip-form .dates-picker-wrapper .button-date-picker-wrapper {
    width: 50%;
  }

  .travel-booking-panel .trip-form .dates-picker-wrapper {
    width: 54%;
  }

  .splited-date-picker {
    float: left;
    margin-bottom: 0.5em;
    overflow: visible;
    padding-right: 0;
    position: relative;
  }

  .travel-booking-panel .trip-form .dates-picker-wrapper .button-date-picker-wrapper {
    width: 50%;
  }

  .splited-date-picker .button-date-picker-wrapper {
    float: left;
    padding-right: 2px;
    position: relative;
  }

  .book-trip form .book-trip-basic-info .search-field-group .field-label.input-filled, .book-trip form .hotel-destination .search-field-group .field-label.input-filled, .book-trip form .dates-picker-wrapper .search-field-group .field-label.input-filled, .book-trip form .package-rooms-wrapper .search-field-group .field-label.input-filled, .book-trip form .trip-package-wrapper .search-field-group .field-label.input-filled {
    clip: inherit;
    color: #767676;
    cursor: inherit;
    font-size: 0.6857rem;
    height: auto;
    left: 0.875rem;
    overflow: hidden;
    position: absolute;
    text-transform: uppercase;
    top: 0.5rem;
    width: auto;
  }

  .cx-inputfield .field-input, .cx-inputfield .field-button {
    height: 3.58em;
    max-height: 3.58em;
    padding-left: 0.857em;
  }

  .dates-picker-wrapper .button-date-picker {
    float: left;
    height: 3.58em;
    margin: 0;
    max-height: 3.58em;
    overflow: hidden;
    padding: 0 0 0 1em;
    position: static;
  }

  .dates-picker-wrapper .button-date-picker {
    -moz-border-bottom-colors: none;
    -moz-border-left-colors: none;
    -moz-border-right-colors: none;
    -moz-border-top-colors: none;
    background: #fff none repeat scroll 0 0;
    border-color: #fff #fff #c6c2c1;
    border-image: none;
    border-radius: 0;
    border-style: solid;
    border-width: 1px;
    display: block;
    padding: 1em 3.25em 1em 0;
    position: relative;
    text-align: left;
    width: 100%;
  }

  .book-trip .button-placeholder {
    color: #4c4c4c;
  }

  .dates-picker-wrapper .button-date-picker {
    font-size: 0.875em;
    text-align: left;
  }

  .splited-date-picker .button-date-picker-wrapper .button-date-picker .from {
    border-bottom: 0 none;
  }

  .dates-picker-wrapper.splited-date-picker .button-date-picker .from {
    padding-bottom: 0;
  }

  button, html input[type="button"], input[type="reset"], input[type="submit"] {
    cursor: pointer;
  }

  .dates-picker-wrapper .button-date-picker .date-selected {
    color: #4c4c4c;
    display: block;
  }

  .dates-picker-wrapper .button-date-picker .has-date .date-full {
    display: block;
    overflow: hidden;
    white-space: nowrap;
  }

  .dates-picker-wrapper .button-date-picker {
    font-size: 0.875em;
  }

  .dates-picker-wrapper .button-date-picker {
    text-align: left;
  }

  button, html input[type="button"], input[type="reset"], input[type="submit"] {
    cursor: pointer;
  }

  .book-trip form .book-trip-basic-info .search-field-group .field-label.input-filled, .book-trip form .hotel-destination .search-field-group .field-label.input-filled, .book-trip form .dates-picker-wrapper .search-field-group .field-label.input-filled, .book-trip form .package-rooms-wrapper .search-field-group .field-label.input-filled, .book-trip form .trip-package-wrapper .search-field-group .field-label.input-filled {
    clip: inherit;
    color: #767676;
    cursor: inherit;
    font-size: 0.6857rem;
    height: auto;
    left: 0.875rem;
    overflow: hidden;
    position: absolute;
    text-transform: uppercase;
    top: 0.5rem;
    width: auto;
  }

  .dates-picker-wrapper .dates-picker .calendar {
    margin-bottom: 1em;
    padding-bottom: 1em;
    min-width: 0;
  }

  .book-trip .ui-calendar {
    background: #fff none repeat scroll 0 0;
    clear: left;
  }

  .ui-calendar {
    padding: 1em 6% 1.5em;
    width: auto;
    position: relative;
  }
  .ivu-date-picker{
  display: block;
  line-height: normal;
  }

  .book-trip .button-submit {
    float: left;
    text-align: left;
    width: 16%;
    height: 50px;
    margin: 0 0 0 3px;
    max-height: 32px;
    padding: 0 1em;
    position: relative;
    background: rgba(0, 0, 0, 0) linear-gradient(to top, #a62128 0px, #cb464d 100%) repeat scroll 0 0;
    border: 1px solid transparent;
    border-radius: 2px;
    box-shadow: 0 1px 0 0 #c6c2c1;
    color: #fff;
    overflow: visible;
  }

  .book-trip .button-submit .button-title-large {
    display: block;
    float: left;
    line-height: 1.125rem;
    margin: 0;
    overflow: hidden;
    position: static;
    width: 90%;
    font-size: 16px;

  }

</style>
